package com.myown.jdk.design.singleton;

/**
 *
 * 饿汉单例 <p>
 *
 * 加载类即加载，内存比懒汉占用多，但性能快 <p>
 *
 * @author lincky
 * @version v1.0.0
 * @time 2017.03.24 14:01
 */
public class HungrySingleton {

    private static HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {

    }

    public HungrySingleton getInstance() {
        return instance;
    }

}
